]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/bluetooth: Fix call to undefined method
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 8 Aug 2022 00:54:11 +0000 (02:54 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 17:19:07 +0000 (17:19 +0000)
The method started out as private and was then made public without
updating the internal caller, whoops.

Spotted by Sebastian Keller.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5722

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2409>

js/ui/status/bluetooth.js

index aed017a47769e687a836fe2f5af22ed3adc95b4e..580121a8da5caacec7bd2e4b155c802e83172c31 100644 (file)
@@ -42,7 +42,7 @@ const BtClient = GObject.registerClass({
             const newAdapter = this._client.default_adapter ?? null;
 
             if (newAdapter && this._adapter)
-                this._setHadSetupDevices([...this._getDevices()].length > 0);
+                this._setHadSetupDevices([...this.getDevices()].length > 0);
 
             this._adapter = newAdapter;
             this._deviceNotifyConnected.clear();